Tag Archives: usefull commands

Home »  Tag: usefull commands

This is a collection of useful RHN Satellite commands (more to follow) spacewalk-hostname-rename rename a RHN satellite server to a new hostname satwho list the login names of users on the satellite server satpasswd Change a user’s password on the satellite server Related posts: Centos 6.x: How to install Spacewalk RedHat 6.x/CentOS 6.x: Rename RHN Satellite (Spacewalk) Server RedHat / Ubuntu / Solaris / Linux: Slow SSH logins (5 second delay) RedHat 6.x / CentOS 6.x: Configure DHCP client Centos / Debian / LVM: Add a new disk as a LVM volume CentOS 7.X: How To Install The EPEL Repository

I constantly get annoyed when I add a new repository and get for example an: GPG error: http://archive.getdeb.net oneiric-getdeb Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY A8A515F046D7E7CF If you are good you have anywhere handy the command: wget -q -O- http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add – to add the key for the particular repository. I rarely am that good so I have to run: sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys A8A515F046D7E7CF And off I go… Related posts: Ubuntu: Some Usefull Commands Hardware lister lshw Ubunty Unity-2D Unity optimisation RedHat / Ubuntu / Solaris / Linux: Slow SSH logins (5 second delay) Ubuntu / Mint: Install latest Nvidia drivers

Assuming someone is working on unity there might be 2 applets which are crucial to install 1. CPU frequency scaling applet in unity Indicator applet for displaying and changing CPU frequency on-the-fly. It provides the same functionality as the Gnome CPU frequency applet, but doesn’t require Gnome panel and works under Unity. Install CPU frequency applet on ubuntu 11.04(Natty) Open the terminal and run the following commands # sudo add-apt-repository ppa:artfwo/ppa # sudo apt-get update; sudo apt-get install indicator-cpufreq -y Create unity launcher You can create unity launcher using the following procedure Right click on desktop, select “create launcher” name it, icon it, and put “indicator-cpufreq” as the command. then drag it to the unity launcher.   2. Indicator-sysmonitor – Monitor your CPU and memory usage Unity users can easily monitor CPU and Memory usage by using indicator-sysmonitor application.This is very simple and helpful application Install indicator-sysmonitor on ubuntu open the terminal and […]

There comes the time when you might update a slow specked device (Netbook) to a more recent Ubuntu version with Unity and realize somewhere after the install that “It seems that you do not have the hardware required to run Unity. Please choose Ubuntu Classic at the login screen and you will be using the traditional environment.” So what to do now? Option 1. You anyway haven’t been a friend of that Unity thingy and would like to have that archaic but known Gnome Desktop. You’re da man, here you go, but this works only on Ubuntu 11.04  Natty (nutty) Narwahl In case you are logged in, you have to logout (do not restart just log out) On the “Login Screen” enter your login name and at the bottom you might find a drop down menu offering you Ubuntu classic as a environment to start.   Option 2. “Well, I like to have Unity, it rocks, its the best on the world that […]

I recently run into the need to know what components I have inside my box without going upstairs and grabbing the screwdriver and going back downstairs, starting to unscrew the case, maybe hurt myself while doing so, etc etc. Under Windows there is the nice tool called Speccy doing that job. But what about my Ubuntu? Its almost as easy as Speccy, called lshw (hardware lister) install it – It should be in the default Ubuntu repositories # sudo apt-get update;sudo apt-get install lshw lshw-gtk -y start the commandline tool # sudo lshw You might like to export the lshw report to a html document to store it somewhere for quick access. # sudo lshw -html > /tmp/your-file-name.html or alternatively because I love GUI’s # sudo lshw -X   Related posts: Ubunty Unity-2D Ubuntu: Some Usefull Commands Unity optimisation Ubuntu/Debian: Fix NO_PUBKEY Error For The Repositories Ubuntu / Mint: Install […]

Usefull Commands for Solaris # scp /home/origin/* user@machine:/home/destination/ Related posts: Solaris: Operating System Disk Replacement Procedure Solaris: Administrator’s Quick Reference Sun / Solaris / ALOM: Change RSC ALOM Password from the OS Sun / Solaris / ALOM : Solaris ILOM / ALOM Cheat Sheet Solaris: Procedure to Re-layout the Solaris OS Disk Solaris: Netbackup: bpcd issues

Some usefull commands: To add a broken pgp key try # sudo apt-key adv –recv-keys –keyserver keyserver.ubuntu.com 0x0e494dbb2f021ac1 where 0x0e494dbb2f021ac1 is the key that needs to be added If this is not working then you need to add a step more. # gpg –keyserver subkeys.pgp.net –recv C71839136CF5CE97 (replace “C71839136CF5CE97” by the code in your error message) # gpg –export –armor C71839136CF5CE97 | sudo apt-key add – (here again, replace “C71839136CF5CE97” by the code in your error message) Uninstall a hidden application (like AIR applications)     Hit the terminal. Enter ‘sudodpkg-S /opt/*’ (without quotes). You will get an output like this: adobeair1.0: /opt/Adobe AIR boxee: /opt/boxee app.destroyflickr.f242b970c206039aa6d597ec43895e3dd9c3cfe0.1: /opt/DestroyFlickr app.destroytwitter.23ca2f9b070e2fb8c4472f982f88b1a471f11ae2.1: /opt/DestroyTwitter com.friendfeed.friendfeed.e15dd0e93fae91f55000c2534280f7d2e075d241.1: /opt/FriendFeed picasa: /opt/google com.seesmic.desktop.client.d89f32799270693bef34aaa36e9b2632b59240fa.1: /opt/Seesmic Desktop com.nyt.timesreader.78c54164786ade80cb31e1c5d95607d0938c987a.1: /opt/Times Reader tweetdeckfast.f9107117265db7542c1a806c8db837742ce14c21.1: /opt/TweetDeck Enter ‘sudo dpkg -P tweetdeckfast.f9107117265db7542c1a806c8db837742ce14c21.1’ for example to uninstall TweetDeck. You will see the output like this: (Reading database … 117955 files and directories currently installed.) Removing tweetdeckfast.f9107117265db7542c1a806c8db837742ce14c21.1 […]

%d bloggers like this: