Search This Blog

Showing posts with label Xubuntu. Show all posts
Showing posts with label Xubuntu. Show all posts

Friday, June 22, 2018

add Volume indicator for xUbuntu 16.04 LTS

Running xUbuntu 16.04 LTS on VMware.

I am a less is better person, so did no have sound card at begining.

After add sound card, found there is no Volume indicator on Panel as an option.

I am using pulseaudio server for sound in xUbuntu.
apt-get install xfce4-pulseaudio-plugin

Logout then Login.

Now you can add the Volume indicator on the Panel.

Saturday, February 27, 2016

Linux Half-Life Dedicated Server Counter-Strike Server

Note 0: The old hldsupdatetool not longer works!!!!

It's a lot to cover.
For now, only reference links:

https://developer.valvesoftware.com/wiki/SteamCMD
https://developer.valvesoftware.com/wiki/Dedicated_Servers_List

https://developer.valvesoftware.com/wiki/Half-Life_Dedicated_Server
http://www.howtodoityourself.org/how-to-install-counter-strike-server.html
http://forums.absurdminds.net/viewtopic.php?f=18&t=423
https://support.steampowered.com/kb_article.php?ref=6470-EIFV-5481#start

I spin an new Ubuntu VM.
Note 1: 32bit is easier because of no lib32gcc1 required.
Download SteamCMD.


cd ~/steamcmd
./steamcmd.sh
login anonymous
force_install_dir ./cs_go/



Note 2: for Counter-Strike: Condition Zero Dedicated Server

app_set_config 90 mod czero
app_update 90 validate



Note 3: for Counter-Strike Global Offensive Dedicated Server

app_update 740 validate



Note 4: for Counter-Strike: Source Dedicated Server

app_update 232330 validate

Friday, January 31, 2014

How to disable right-click on the desktop in Xfce 4.10

This is the second shoot on Xfce.

First my testing box:

Fresh Install 12.04 32-bit.
Then apt-get update, upgrade and dist-upgrade
Then ppa upgrade xfce4 4.10
Reboot.


Try the following:

1. In Settings > Desktop > Menus
a. uncheck Show applications on right click.
b. uncheckShow window list on middle click.


2. go to Settings > Desktop > Icons
select type: None or Minimized


Then this should pretty much disable all interaction with the desktop.

To apply this change system wide, copy changes from your user folder to:

/etc/xdg/xdg-xubuntu/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml

remove [Suspend] [Hibernate] buttons from the Xfce logout dialog

Been working on Xfce recently.

I would like to share some trick on how to Customize XFCE Desktop, hope these can save your some time.

My build need to remove [Suspend] [Hibernate] buttons from the Xfce logout dialog

To change system wide:
/etc/xdg/xdg-xubuntu/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml

To change for one user:
~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml

Add these at the end of xml file:







Make it looks like:


















Tuesday, January 14, 2014

Starting Ubuntu Xubuntu without the GUI

For Ubuntu 11.10 and higher

Edit /etc/default/grub

vi /etc/default/grub

Find out this line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Change it to:

GRUB_CMDLINE_LINUX_DEFAULT="text"


Update Grub:

sudo update-grub


Please notice, you do NOT need to remove / disable lightdm upstart conf, it already does that for you.

lightdm.conf

# Check kernel command-line for inhibitors, unless we are being called
# manually
for ARG in $(cat /proc/cmdline); do
if [ "$ARG" = "text" ]; then
plymouth quit || :
stop
exit 0
fi
done


You will still be able to use X by typing startx after you logged in.

Wednesday, October 2, 2013

Ubuntu Cleanup: How to Remove All Unused Linux Kernel Headers, Images and Modules

First do upgrade to the latest kernel and reboot with the new kernel, make sure everything works!

$ uname -a
Linux MDS 3.2.0-54-generic #82-Ubuntu SMP Tue Sep 10 20:09:12 UTC 2013 i686 i686 i386 GNU/Linux

Then check all the linux kernel installed:

$ dpkg -l 'linux-*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=========================================-=========================================-==================================================================================================
un linux-doc-3.2.0 (no description available)
ii linux-firmware 1.79.6 Firmware for Linux kernel drivers
ii linux-generic 3.2.0.54.64 Complete Generic Linux kernel
un linux-headers (no description available)
un linux-headers-3 (no description available)
un linux-headers-3.0 (no description available)
un linux-headers-3.2.0-23 (no description available)
un linux-headers-3.2.0-23-generic (no description available)
ii linux-headers-3.2.0-52 3.2.0-52.78 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-52-generic 3.2.0-52.78 Linux kernel headers for version 3.2.0 on 32 bit x86 SMP
ii linux-headers-3.2.0-54 3.2.0-54.82 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-54-generic 3.2.0-54.82 Linux kernel headers for version 3.2.0 on 32 bit x86 SMP
ii linux-headers-generic 3.2.0.54.64 Generic Linux kernel headers
un linux-image (no description available)
un linux-image-3.0 (no description available)
ii linux-image-3.2.0-52-generic 3.2.0-52.78 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-54-generic 3.2.0-54.82 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-generic 3.2.0.54.64 Generic Linux kernel image
un linux-initramfs-tool (no description available)
un linux-kernel-headers (no description available)
un linux-kernel-log-daemon (no description available)
ii linux-libc-dev 3.2.0-54.82 Linux Kernel Headers for development
un linux-restricted-common (no description available)
ii linux-sound-base 1.0.25+dfsg-0ubuntu1.1 base package for ALSA and OSS sound systems
un linux-source-3.2.0 (no description available)
un linux-tools (no description available)


List all old kernels:


$ dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/(.*)-([^0-9]+)/1/")"'/d;s/^[^ ]* [^ ]* ([^ ]*).*/1/;/[0-9]/!d'

linux-headers-3.2.0-52
linux-headers-3.2.0-52-generic
linux-image-3.2.0-52-generic


Run this command to clean the old kernel:


$ dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/(.*)-([^0-9]+)/1/")"'/d;s/^[^ ]* [^ ]* ([^ ]*).*/1/;/[0-9]/!d' | xargs sudo apt-get -y purge



Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-headers-3.2.0-52* linux-headers-3.2.0-52-generic* linux-image-3.2.0-52-generic*
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
After this operation, 181 MB disk space will be freed.
(Reading database ... 152425 files and directories currently installed.)
Removing linux-headers-3.2.0-52-generic ...
Removing linux-headers-3.2.0-52 ...
Removing linux-image-3.2.0-52-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-52-generic /boot/vmlinuz-3.2.0-52-generic
update-initramfs: Deleting /boot/initrd.img-3.2.0-52-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-52-generic /boot/vmlinuz-3.2.0-52-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-54-generic
Found initrd image: /boot/initrd.img-3.2.0-54-generic
Found memtest86+ image: /boot/memtest86+.bin
done
The link /vmlinuz.old is a damaged link
Removing symbolic link vmlinuz.old
you may need to re-run your boot loader[grub]
The link /initrd.img.old is a damaged link
Removing symbolic link initrd.img.old
you may need to re-run your boot loader[grub]
Purging configuration files for linux-image-3.2.0-52-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-52-generic /boot/vmlinuz-3.2.0-52-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-52-generic /boot/vmlinuz-3.2.0-52-generic


This will generate a new GRUB menu, and when you reboot, you’ll see only the current kernel is listed.