Posts Tagged ‘change’
Tuesday, December 21st, 2010 To change the Main Menu link menu entry in Joomla, from Joomla administ rator I tried to:
Menus -> Main Menu -> Menus
I’ve changed the title but the change didn’t appeared in my Joomla based website .
I tried to change it directly in the source code of the website by looking for ‘Main Menu’ string with:
debian:/home/mysite/www# grep -rli 'Main Menu' *
but it appeared too complicated and after trying few string changes in few files I decided to drop this kind of approach.
A bit of investigation online led me to how to achieve what I was trying to dire ctly from Joomla.
Here is how. In Joomla administrator move to:
Extensions -> Module Manager
In the list you will the Module Manager appear under the list Module Name , therein you have to click over Main Menu text and change it to whatever you like to.
The new text you entered will appear on the joomla website immediately, enjoy.
Tags: administ, change, Click, grep, home, How to change from default main menu to other text in Joomla, investigation, kind, link, link menu, Main, menu, menu entry, menu link, menu text, menus, Module, move, mysite, online, rator, rli, source code, string changes, text, title, website, www
Posted in Joomla, Linux, SEO | 2 Comments »
Wednesday, December 22nd, 2010 My blog’s index has suddenly started redirecting to my last post. That was rather strange, since I haven’t done anything special, all I did before the problem occured was a change in wordpress wp-admin to my latest post.
There in I changed the post Visibility from Public to Private
Right after this my blog’s home started redirecting to the blog post where the changes was made.
This was really strange, so I reverted back the changes in Post’s Publish Visibility to the default setting.
Though the change the redirect to the latest post by accessing my www.pc-freak.net/blog/ was still there.
I tried completely wiping out the post by sending it to Trash and issuing the same post again, but now things became even worser.
Accessing my blog was opening 404 not found error message . Everything seemed fine in wordpress admin and therefore I suspected the redirect is being applied from info read in my wordpress database in MySQL.
A bit of investigation prooved my guess was correct, for some reason a record was made to the MySQL blog database in table wp_redirection_items.
The incorrect redirection wihtin the database looked like so:
| 4 | /blog/ | 0 | 2 | 0 | 0000-00-00 00:00:00 | 2 | enabled | url | 301 | /blog/how-to-change-from-default-main-menu-to-other-text-in-joomla/ | url | NULL |
Removing the incorrect redirect was kind of easy and came to simply issuing:
mysql> delete from wp_redirection_items where id='3';
Query OK, 1 row affected (0.00 sec)
This fixed the redirection issue and opening my blog main page started correctly opening the main page again! 🙂
Tags: blog, change, error message, everything, fine, freak, guess, home, How to fix wordpress blog sudden redirection to present post problem, info, investigation, issue, kind, null, page, private right, Public, Publish, Query, read, reason, redirect, redirection, visibility, wihtin, worser, www
Posted in Joomla, Various | 3 Comments »
Wednesday, February 1st, 2012 Earlier I've blogged on How to Work Around periodically occuring TrackPoint Thinkpad R61 issues on GNU / Linux . Actually I thought the fix I suggested there is working but I was wrong as the problems with the trackpoint reappeared at twice or thrice a day.
My suggested fix was the use of one script that does periodically change the trackpoint speed and sensitivity to certain numbers.
The fix script to the trackpoint hanging issue is here
Originally I wrote the script has to be set to execute through crontab on a periods like:
0,30 * * * * /usr/sbin/restart_trackpoint.sh >/dev/null 2>&1
Actually the correct values for the crontab if you use my restart_trackpoint.sh script are:
0,5,10,15,20,25,30,35,40,45,50,55,58 * * * * /usr/sbin/restart_trackpoint.sh >/dev/null 2>&3
ig it has to be set the script is issued every 5 minutes to minimize the possibility for the Thinkpad trackpoint hang up issue.
One other thing that helps if trackpoint stucks is setting in /etc/rc.local is psmouse module to load with resetafter= parameter:
echo '/sbin/rmmod psmouse; /sbin/modprobe psmouse resetafter=30' >> /etc/rc.local
Tags: amp, blogged, change, correct values, crontab, dev, fix, gnu linux, hang ups, ig, issue, issue one, Linux, modprobe, Module, mouse, mouse pointer, nbsp, null, parameter, periods, psmouse, resetafter, rmmod, sbin, sensitivity, speed, stucks, thinkpad, thrice, trackpoint, ups, use, usr
Posted in Linux, Linux and FreeBSD Desktop, Linux Audio & Video | 1 Comment »
Monday, January 23rd, 2012 I've not played audio CD for ages. Anyways I had to set up one computer with Linux just recently and one of the requirements was to be able to play audiocds.
I was surprised that actually a was having issue with such as simple tasks.
Here is how i come with this article.
If you encounter errors playing Audio CDs on any Linux distro in VLC or other players, you might need to apply the following fix.
root@xubuntu-desktop:~# apt-get install xubuntu-restricted-extras
...
root@xubuntu-desktop:~# apt-get install ubuntu-restricted-extras
...
I'm not sure if this packages are required, anyways having them installed is a good idea especially on computers which will have to support as much multimedia as possible.
Trying to play a CD with VLC the result was not nice, you see in the picture above the error that poped up while trying it with VLC:
Due to wrong configuration of the play device VLC will be looking to read the audio cd from.
To succesfully play the audiocd invoke VLC command with a cdda///dev/sr0 argument like so:
hipo@xubuntu-desktop:~$ vlc cdda:///dev/sr0
...
To permanently fix the error you will have to edit ~/.config/vlc/vlcrc :
Inside ~/.config/vlc/vlcrc find the lines:
dvd=/dev/cdrom
Substitute the above line with:
dvd=/dev/sr0
Next find the line:
vcd=/dev/cdrom
Change the above line with:
vcd=/dev/sr0
Due to a bug in generating vlcrc , the dvd= might be set also to other messy unreadable characters (different from /dev/cdrom). This can also be the reason why it fails to properly read the disc.
If dvd= and vcd is set to a different unreadable characters delete them and substitute with /dev/sr0 .I've experienced this on Xubuntu Linux with a Bulgarian localization (probably the bug can be seen in other Linuxes when GNOME is installed in Russian, Chineese and other UTF-8 languages.
The strange error can be observed also in other players when the localization is set to someone's native language …
Alternative solution is to install and use rhythmbox instead of VLC.
Other program to play audio CDs called workman , you will have to get used to the interface which uses gtk1 and therefore obsolete. Putting aside the ugly interface it works 😉
Tags: Anyways, argument, Audio, audio cd, audio cds, audioCD, Auto, cdda, change, chineese, Computer, config, disc, Draft, error c, fix, freebsd, Gnome, GNU, gnu linux, gtk, hipo, languages, Linux, linux distro, linuxes, localization, picture, Play, program, reason, root, someone, strange error, unreadable characters, UTF, VCD, VLC, workman
Posted in Linux, Linux and FreeBSD Desktop, Linux Audio & Video | No Comments »
Friday, January 20th, 2012 Today I had a task to change an old CRT Monitor to LCD BENQ Model FP61E on a computer running Microsoft Windows XP SP3.
Changing phyiscally the monitors and restarting the computer to load with the new BENQ monitor ended up with the LCD Monitor showing a blank screen with error:
Out of Range
making the computer completely unusable.
Thanksfully in Windows Safe Mode the monitor was able to display the screen properly, so I had an option to operate somehow on the pc
My guess was that the Out of Range monitor problems were caused by an incorrect (monitor unsupported resolution).
Therefore what I tried as a fix to make it work was:
1. Enter Windows Safe Mode and change (lower the resolution) to 640×480, and restart the PC.
Unfortunately using this classical way to fix such issues failed… so I thought of some options.
2. Disable the video card NVIDIA Riva TNT2 Model 64 driver and check if this will make any difference.
I come up with the idea the Out of Range LCD issues might be caused by the Video card driver cause I've noticed in safe mode a standard VESA like VGA Driver shipped with Windows worked just fine.
To Disable the currently loaded NVIDIA Riva TNT2 Model 64/ Model 64Pro I used:
System -> Device Manager -> Hardware (Tab) -> Display Adapters
Clicking on Display Adapters the NVIDIA Riva TNT2 Model 64 appears using the option menu on it one can choose to disable the driver.
Further on restart Windows, to test if the XP will load properly with disabled NVidia video drivers.
Onwards it was clear the whole Out of Range issues were caused by some kind of conflict between the LCD BENQ FP61E Monitor and the NVIDIA Riva TNT2 Model 64
Often latest video drivers solves hardware incompitability issues and fix many bugs, upgrading the driver to latest is always a good idea.
3. Therefore I Upgraded the NVIDIA Riva TNT2 64 driver (using Safe Mode) to the latest available from Nvidia's official site.
Weirdly Upgrading NVidia Riva TNT2 drivers to the latest did not fix the Out of Range blank screen error.
After a bit of thinking on what to do to make the Monitor work fine with the Nvidia driver, I thought of completely uninstalling the Nvidia drivers and installing them again might be a fix.
In my previous experience with Windows at many occasions, uninstalling a driver failing to properly work and installing it again with a working version was a good fix.
4. Uninstall the NVIDIA Riva TNT2 Model and Install the latest driver.
Uninstalling and Installing the Video driver had to be done in Windows Safe Mode again, in normal mode the windows was not displaying anything.
After The driver installation program completes the installation it requires a restart. After the restart the Video driver gets loaded fine and Windows loaded up in Normal mode as usual 😉
Tags: Auto, blank screen, card, cause, change, CRT, device manager, Display, display adapters, Draft, hardware tab, Install, installation, manager gt, menu, microsoft windows, Model, monitor problems, nvidia, nvidia riva tnt2 64, nvidia riva tnt2 64 driver, nvidia riva tnt2 model 64, nvidia video drivers, Onwards, option, option menu, range resolution, resolution problems, riva tnt2 model 64, Safe, screen, tnt2 model 64 driver, Uninstalling, Upgraded, vesa, VGA, vga driver, video card driver, Weirdly, windows safe mode, work
Posted in Everyday Life, Windows | No Comments »
Monday, January 16th, 2012 My sister, experience some programs running with wine (Windows Emulator) to crash on her Ubuntu 11.10.
As she is quite new with Linux, she has no idea about the existence of CTRL ALT BACKSPACE key combination to restart a hanged GNOME, KDE by directly killing the Xorg server.
I felt obliged to explain her it is better to use CTRL ALT BACKSPACE X kill switch instead of restarting the whole Linux kernel (which basiclly is working) and that it is just the display keeping blacnk.
Pressing the would kill Xorg and therefore all applicatins previously running on top of it will die. In Ubuntu Xorg is configured to run via gdm, so once killed it will automatically reload the GDM (Gnome Display Manager).
I was about to explain her that its better she use CTRL+ALT+BACKSPACE instead of restarting the whole system but suddenly I realized this is not working.
In UBUNTU 11.10 and I guess in all UBUNTU's after 9.04 CTRL ALT BACKSPACE is substituted with the key switch combination ALT PRINTSCREEN K, I've explained her about that.
This change is actually a change implied by most Linux distributions nowdas and is some kind of change in Xorg newer versions…
To enable back the CTRL + ALT + BACKSPACE , I've issued cmd:
stanimira@ubuntu~:$ echo' setxkbmap -option terminate:ctrl_alt_bksp' >> ~/.xinitrc
An alternative way to set setxkbmap -option terminate:ctrl_alt_bksp to run on Ubuntu user login is by setting it as a startup application using;
stanimira@ubuntu:~$ gnome-session-properties
Press the Add button and type in the box to appear;
Name: setxkbmap
Command: setxkbmap -option terminate:ctrl_alt_bksp
Comment: setxkbmap
Reverting the Xserver kill switch back to the classical Ctrl+Alt+Backspace should also be running fine on older Ubuntu Linuces – 11.04, 10.10, 10.04 etc.
Tags: add button, Alt, Auto, backspace, Button, change, Comment, Ctrl, Display, Draft, existence, GDM, Gnome, kde, key switch, kill, kill switch, Linux, linux kernel, login, most linux distributions, ocelot, option, Press, printscreen, Reverting, session properties, setxkbmapCommand, startup, startup application, switch combination, type, Ubuntu, wine, wine windows, xinitrcAn, Xorg, xserver
Posted in Linux, Linux and FreeBSD Desktop | No Comments »
Friday, January 6th, 2012 I'm testing some old school arcade games, available from Debian's package repositories and quitting one of the games ended me up with a GNOME Screen Resolution of 640×480 pixels.
I wanted to revert back to the Classics resolution, so what I would normally do to do that is use >GNOME menus:
System -> Preferences -> Monitors
In that huge screen resolution on my 14 inch lenovo notebook screen, however the System menu cannot fit in 640×480 resolution. You can see the non-screen fitting System on the screenshot below:
Having this situation, I needed a way to change back to my normal daily used 1024x768px screen resolution to continue my daily work by some other way.
One possible solution I thought of was Logging Off Gnome and logging again. Loggig off and log on again would usually restart the initiated GNOME session and therefore will reset the screen resolution to my default 1024×768 / 32 bit color.
Having the unobservable System gnome panel menu on my screen however made using the usual Log off procedure via System -> Log Out myusername impossible…
Another possible way to actually restart my screen and hence revert back to my original resolution is achiavable using the classical restart X server key switch CTRL + ALT + backspace (bckspc) . Though this was a possible approach to the situation, I had a bunch of programs already running on my desktop and I did not wanted to interrupt my desktop session, what I was looking for is simply change the screen resolution size .
With all said I had to look up for alternative way (preferably easy) way, to revert back my screen resolution to my desired 1024×768.
As a console guy, I was interested if there is some kind of possibility to change my GNOME resolution directly using xterm or gnome-terminal , after a bit of check up online, I've found few threads started by people who were looking just like me for a way to change GNOME / KDE screen resolution size on various distributions Linux desktops as well on Free/Net/Open/BSDs. The answer to the question on few places was the command xrandr which I had used some few years ago to initiate remote X server connections via SSH
xrandr is actually a great tool part of the x11-xserver-utils
Actually xrandr is capable of doing a few things besides setting the screen resolution size, just to name a few it supports change the screen orientation, reflection of the output of the screen, adjust brightness, set color gamma etc. etc.
It is good to mention that xrandr changes the resolution not on a GNOME level but on Xorg server level.
Using xrandr to change the screen resolution appeared to be very easy.
1. First I issued xrandr to check all the supported xrandr resolutions by my X server
hipo@noah:~/Desktop$ xrandr Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192VGA1 disconnected (normal left inverted right x axis y axis)LVDS1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 304mm x 228mm 1024x768 60.0*+ 50.0 800x600 60.3 56.2 640x480 60.0 59.9 TV1 disconnected (normal left inverted right x axis y axis)hipo@noah:~/Desktop$
From the output you can see I have 3 basic resolutions configured in my Xorg, I can switch between.
2. To switch to my previous default screen resolution
hipo@noah:~/Desktop$ xrandr -s 1024x768
After using xrandr command to revert back to my default screen size, I realized there is two other (partially command line partially gui) way to change to 1024×768 pixels.3. Through launching gnome Control Center and searching for Monitors menu.
If one prefers this way he can;
i) press ALT+F2 to invoke Gnome's Run Application dialog
ii) issue gnome-control-center command:
4. By invoking gnome's Control Panel -> Monitors settings window by a command
hipo@noah:~/Desktop$ gnome-display-properties
Tags: Alt, arcade games, Auto, bckspc, change, debian gnu, Desktop, Draft, freebsd, Gnome, gnome panel, gnome resolution, gnu linux, hipo, key switch, level, Linux, menu, menus, Monitors, noah, notebook, old school, package, panel menu, possibility, possible solution, repositories, resolution size, right, screen, screenshot, size, system menu, terminal, threads, work, x server, Xorg, xterm
Posted in FreeBSD, Linux and FreeBSD Desktop | 2 Comments »
Wednesday, December 21st, 2011 Do you remember that oldschool Arcade VolleyBall game which was so popular on 16 bit (8086 XT) computers.
I remember this game from the years I was 12 years old, back in the days where we the gamers distributed all the DOS games on 360 KB 5.25" diskettes
I was looking over the games available to install on my Debian GNU / Linux today just to be happily suprised to find GPL Arcade Volleyball an identical game remake of the old Arcade Volleyball 8086 classic freeware game.
I remember we spend many hours with friends playing on the old Manifactured in Bulgaria Pravetz 16! computers
During communism and post communism Pravetz was the only computer brand we could buy from the market, as there was limitations on the exported and imported tech equipment within the USSR union.
Pravetz computers are a literal remake of 16 bit IBM 8086 computers and the computer design and integrals was stolen from IBM 16 bit 8086 / 8088 PC architecture
Arcade Volleyball has set a mark on my generation and I believe many people will remember the times this game was a hit with a bit of Nostalgia 😉
Besides being an identical remake of PC Arcade Volleyball , GPL Arcade Volleyball is even expanded as it includes extra features which the original game lacked. Game includes:
- Network Volleyball client / server Game (up to 4 players)
- 6 Game Themes which completely change the game look & feel to be modernistic
Here are few GAV screenshots of the different existing game Themes:
Yisus GAV Theme gameplay screenshot
GAV – Unnamed Theme Gameplay
GAV – FaBeach Theme Gameplay
GAV supports both Window and fullscreen modes. To enable Fullscreen mode, while inside the game use:
Extra -> Fullscreen (Yes)
Saving preferences is also something which I if I recall correctly the original game lacked. This is done by navigating to:
Extra -> Save Preferences
GAV is said to support Joystick in resemblance to the original DOS game, though I've never tested it with a joy.
One of the greatest GAV game (hacks) is the Inverted Theme. Selecting it inverts the order in the game, where the game player becomes the volleyball ball and the ball becomes the player 😉
GAV does not yet not have a Free / Open / Net BSD port as far as I currently see, anyways since the game is Free Software probably soon a port will be available for BSDs as well.
The default GAV game controls are a bit untraditional. By default the one player game starts you play Volleyball game player positioned on the left.
For left player the default control keys are:
- z – move player left
- c – move player right
- left shift – jump
Right player controls are:
- Left – left (arrow key)
- right – right (arrow key)
- jump – up cursor key
GAV supports also a shortcut key for switching between windowed and full screen game mode by pressing F10
Installing the game on Debian and Ubuntu Linuces is done with:
linux:~# apt-get --yes install gav
Unfortunately gav does not have a definition to be added to GNOME or KDE Applications menus, thus to start the game after installed one has to do it manually by typing either in gnome RUN (Alt+F2) or on command line:
linux:~$ gav
Happy playing 😉
Tags: amp, architecture, arrow, bulgaria, change, client, client server, communism, computer brand, computer design, debian gnu, dos game, dos games, equipment, EXTRA, Free, freeware, freeware game, fullscreen, game themes, Gameplay, generation, Gnome, integrals, joystick, Manifactured, mark, modes, move, nbsp, nev, nostalgia, pc arcade, pc architecture, player, Pravetz, quot, resemblance, right, screenshot, server game, something, ussr, volleyball game, window, Yisus
Posted in Entertainment, Games Linux, Linux Audio & Video | No Comments »
Wednesday, December 21st, 2011 As a Child I've been baptized in the Orthodox Church and since then I've been a complete atheist until the age of 21.
What is the reason to get my faith in God in 21? This is a short post to shed some light on the great efforts of communism to erradicate faith in God in Communistic countries and change faith in God with faith in man and how this kind of approach devastates societies.
During the communism it's a well known fact that communists, all the members in the Bulgarian Communist's Party (BCP),has led an anti Bulgarian Orthodox Church government politics. The fact that Communistic Governments are fighting Churches and faith in God is less known among youngesters and hardly known by people part of western democratic societies.
I did not lived this time myself, but I heard many stories about the stupidities of communism.
Many older people say, when communism came to rule the Communist Government did immediately destroy some Orthodox Christian temples, some priests were convinced in crimes they were not responsible for etc…
Other priests were send in the Concentration camps and many of them never returned in the society.
"Access" to the Churches was limited and sometimes prohibited to the orthodox layman and often to clergy.
During these terrible communism era, it was prohibited to everybody who is a member of BPC to attend Orthodox Church services or identify himself as christian in public.
I've heard from my grandma an interesting story she witnessed, while she was working as a cleaner in the militia (police).
Here is the story:
One day my grandma wanted to go to the Church St. George located on the city centre of Dobrich city Bulgaria.
A policeman stopped her when she was entering the temple and since he knew her as an employee in the police called her by name and told her that she is not allowed to enter the church building, because she is working in the police.
My grandma asked the militiaman to let her enter the temple to pray for just few minutes and light up a candle (just for this time) without reporting for that in the police.
The policeman agreed to let us in and keep silent that she entered the Church this time,but warned her that if he sees her another time entering the church he is going to report to the respective authorities.
Another part of the Government active politics against the Bulgarian Orthodox Church was by placing an ex-criminals who were sentenced for thefts, rapings, agression or other crimes as a priests in the Church.
By this move the supreme counsel of the bulgarian communist party wanted to break the people confidence in the Church as the true holy apostolic Church. The most fierce communists during these days did their best to present the church of God as a corrupted and void institution who only steals from people and exists only to deceive society.
Yet many years after the fall of communism this people distrust in the church that communists sow through the years.
What is pity is even after the communism is gone for a long, time the churches are only full on biggest feasts and no more than 5% of the citizens are regularly going for Church service or have even the basic knowledge on the Church truths and mysteries.
Following the fall of communism the democratic governments who come to power, elected in a citizen democratic elections did not do much to help the church either, some of them does lead politics openly hostile to our Bulgarian Church.
The last government selected, seems to be less hostile to our Church, but people have once been cut away from the Church and now its really hard for our nation to get back to faith.
The severe crisis (a word that means judgement in greek) and the hardships many people experience started to make some people rethink about what is the meaning of life and made them occasionally go back to faith of our fathers orthodoxy.
What will happen further nobody knows, we need to pray and hope God will have mercy and people will repent for their sins and come back to faith again.
Tags: age, anti, aske, atheist, bpc, bulgarian orthodox church, candle, centre, change, Child, christian temples, church government, city, communism, Communist, communist government, Communistic, communistic countries, communists, concentration camps, democratic societies, dobrich, everybody, faith in god, government politics, grandma, interesting story, layman, Light, militia, move, party, police, policeman, pray, priests, quot, reason, st george, story, supreme, time
Posted in Christianity, Everyday Life, Various | No Comments »
Monday, October 17th, 2011 Often when some of my companies, I’m employed with rents dedicated GNU / Linux servers co-located in data centers,
usually the local hostname is configured while the system is being installed, therefore many times when we forget to tell the Dedicated provider what kind of hostname, we’re intending to use they came up with some kind of hostname which is randomly set based on the dedicated provider’s company name or a server ID number. Cosenquently the machine hostname assigned due to company local server numbering policy.
Hence after one logs in to the newly purchased server with over SSH protocol, then we end up with a hostname like for example:
server56663:~#
This hostname naming, often doesn’t make much sense for the services running on the server and doesn’t have nothing to do to the provided internet services by the server, however its really important for me to orientate myself which server I have logged to. Therefore one of the first things I do while configuring a new server is to change the local server assigned hostname .
Besides having the hostname shown by the shell prompt, there is a quick command to print out the Fully Qualified Domain hostname, by issuing:
>server56663:~# hostname --fqdn
server56663.dedicompany.com
The Universal GNU / Linux way which works on almost all Linux distributions to change the configured hostname goes like this:
Edit /etc/hosts . A default /etc/hosts file looks something like:
server56663:~# cat /etc/hosts127.0.0.1 localhost.localdomain localhost
127.0.1.1 server56663.dedicompany.com server56663
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
On the second line which assigns the hostname for the loopback IP address 127.0.0.1 , you see the identifier for the local hostname:
127.0.1.1 server56663.dedicompany.com server56663
To change that to a custom local hostname of choice, the line should be modified to look like:
127.0.1.1 CustomHostName server56663.dedicompany.com server56663
On some GNU / Linux distributions the line 127.0.1.1 might be completely absent, this is the case with for example CentOS and Fedora and many other distros
On these Gnu / Linux distributions the /etc/hosts might looks like:
# Do not remove the following line, or various programs# that require network functionality will fail.127.0.0.1 localhost.localdomain localhost
Alas on Fedora, CentOS and other distros to set the localhost hostname, one more line should be added to /etc/hosts . The line to add looks like so:
123.123.123.123 CustomHostName
After modification and adding the custom hostname name there the file should look something like:
[root@centos ~]# cat /etc/hosts127.0.0.1 localhost localhost123.123.123.123 CustomHostName
After including correct records in /etc/hosts , next the hostname command is used to change the localhost name configured to show as a machine name on user ssh login:
server56663:~# hostname CustomHostName
server56663:~#
Further to check that the new hostname is set for all ssh sessions incoming to the ssh server from now on the hostname command is used without arguments:
server56663:~# hostname
CustomHostName
Even though now the hostname is changed to CustomHostName still, the hostname for the current opened ssh session is keeping the old hostname:
server56663:~# hostname
server56663
To see the hostname change in your shell prompt you will have to logout and login again to the system.
Here its good to mention the Linux kernel has a variable kernel.hostname, which can be used to set the local machine hostname. Actually the hostname command automatically set the kernel.hostname kernel variable.
If of course one want to change the kernel var directly without using the hostname command, this can be achieved with sysctl, e.g.:
server56663:~# sysctl kernel.hostname=CustomHostName
On Debian GNU / Linux the way to change the hostname there is a “debian way” approach:
Debian has a file /etc/hostname , which is there just for the sake of configuring the system hostname. During system boot process Debian reads /etc/hostname file and sets the machine hostname to the word inside. The /etc/hostname file is being red and configured by Debian’s /etc/init.d/hostname.sh shell script.
Therefore after changing the hostname in Debian by editting /etc/honstmame , the /etc/init.d/hostname.sh needs to be invoked for the new hostname to be set system wide, like so;
server56663:~# /etc/init.d/hostname.sh
Just like with other GNU / Linux distributions for the new hostname to be active on the current shell a logout and login via ssh is necessery again.
With Fedora, CentOS and other Redhat based distributions the “proper” way to change the hostname is:
a. change the /etc/hosts way described above in the aticle.
b. Edit /etc/sysconfig/network file and write inside the new custom hostname.
[root@centos ~]# grep -i hostname /etc/sysconfig/network
HOSTNAME=localhost.localdomain
After HOSTNAME value is set to the new desired hostname and file is saved, the network script should be invoke with restart argument:
[root@centos ~]# /etc/init.d/network restart
One more thing to consider always when changing a hostname is that some of the system services are using the configured local machine hostname, and hence need to be restarted also from a active shell where the new hostname is already set and active.
Since the system hostname is being configured usually, with the rest of server configurations on system boot, after setting the desired hostname it is a good idea to have a system reboot. This will guarantee that all running daemons will read the newly set hostname:
E.g.:
server56663:~# shutdown -r now
On next boot the hostname should be set to whatever you put as a custom hostname.
Tags: allnodesff, allroutersOn, CentOS, change, com, custom, doesn, domain, file, gnu linux, hostname, hosts file, init, internet services, ip6, Linux, linux distributions, linux servers, localdomain, localhost, localnet, localnetff, login, logs, loopback, mcastprefix, mcastprefixff, number, orientate, Protocol, Qualified, quot, rents, root, sense, server id, Shell, something, ssh, Universal
Posted in Linux, System Administration, Various | 1 Comment »
How to enable Ctrl+Alt+Backspace in Ubuntu 11.10 (Oneiric Ocelot) Linux
Monday, January 16th, 2012My sister, experience some programs running with wine (Windows Emulator) to crash on her Ubuntu 11.10.
As she is quite new with Linux, she has no idea about the existence of CTRL ALT BACKSPACE key combination to restart a hanged GNOME, KDE by directly killing the Xorg server.
I felt obliged to explain her it is better to use CTRL ALT BACKSPACE X kill switch instead of restarting the whole Linux kernel (which basiclly is working) and that it is just the display keeping blacnk.
Pressing the would kill Xorg and therefore all applicatins previously running on top of it will die. In Ubuntu Xorg is configured to run via gdm, so once killed it will automatically reload the GDM (Gnome Display Manager).
I was about to explain her that its better she use CTRL+ALT+BACKSPACE instead of restarting the whole system but suddenly I realized this is not working.
In UBUNTU 11.10 and I guess in all UBUNTU's after 9.04 CTRL ALT BACKSPACE is substituted with the key switch combination ALT PRINTSCREEN K, I've explained her about that.
This change is actually a change implied by most Linux distributions nowdas and is some kind of change in Xorg newer versions…
To enable back the CTRL + ALT + BACKSPACE , I've issued cmd:
stanimira@ubuntu~:$ echo' setxkbmap -option terminate:ctrl_alt_bksp' >> ~/.xinitrc
An alternative way to set setxkbmap -option terminate:ctrl_alt_bksp to run on Ubuntu user login is by setting it as a startup application using;
stanimira@ubuntu:~$ gnome-session-properties
Press the Add button and type in the box to appear;
Name: setxkbmap
Command: setxkbmap -option terminate:ctrl_alt_bksp
Comment: setxkbmap
Reverting the Xserver kill switch back to the classical Ctrl+Alt+Backspace should also be running fine on older Ubuntu Linuces – 11.04, 10.10, 10.04 etc.
Tags: add button, Alt, Auto, backspace, Button, change, Comment, Ctrl, Display, Draft, existence, GDM, Gnome, kde, key switch, kill, kill switch, Linux, linux kernel, login, most linux distributions, ocelot, option, Press, printscreen, Reverting, session properties, setxkbmapCommand, startup, startup application, switch combination, type, Ubuntu, wine, wine windows, xinitrcAn, Xorg, xserver
Posted in Linux, Linux and FreeBSD Desktop | No Comments »