Category Archives: Linux

The Linux Category actually encompasses *BSD, RH, Fedora, Ubuntu, and the like.

Remove Storage Citrix Desktop Studio

In the Citrix Desktop Studio, under Configuration and then Hosts, I saw the following information:
citrix_storage

And I wanted to remove the NM_VDI from both the Personal vDisk and the Virtual machine storage areas.

Click on the Desktop Studio at the top left of the navigation window
Click on the Powershell tab
In the lower right, click on Launch PowerShell

In the powershell
cd XDHyp:
ls

Search for “HostingUnitName” and “Storage”/”PersonalvDiskStorage”. We’ll need both of these for the next command

Remove-HypHostingUnitStorage -LiteralPath 'XDHyp:\HostingUnits\YOURHOSTINGUNITNAMEHERE' -StoragePath 'XDHyp:\Connections\YOURPATH\TO\STORAGE.storage'
Add a storagetype if it’s the personal storage:
Remove-HypHostingUnitStorage -LiteralPath 'XDHyp:\HostingUnits\YOURHOSTINGUNITNAMEHERE' -StoragePath 'XDHyp:\Connections\YOURPATH\TO\STORAGE.storage' -StorageType PersonalvDiskStorage

HP Chromebook Install Ubuntu

I think it’s actually chrubuntu, but you get the general idea. I also copied the script to it.thelibrarie.com/utilities/chrubuntu-install.txt just in case the s9ryd link goes dark. So here is how to remove the google chromeOS and install a fork/flavor of ubuntu. Why install? Citrix receiver was version 1.x and runs as a Chrome browser wraparound; none of the full screen buttons work, sound didn’t work, video was choppy. The receiver for Windows/Mac/Linux is 2.x and has HDX and other supported features. And the laptop seems peppy-er now anyway. Battery life went from 4.5 hours to just under 4, so keep that in mind as well. I couldn’t get the bindkeys to work on my installation, so if someone has a workaround that would be awesome to provide to me.

Documentation is a work in progress.

Enable Developer Mode
HP’s chromebook is a giant pain in the *** to enable developer mode. You end up removing all 10 screws on the bottom, carefully removing the keyboard with fingernails and a flat head screwdriver, and then removing 9 more screws from under the keyboard. Pry up the top right corner (we want to end up with the right half accessible) so you can find the toggle switch. More information here.

Access Developer Mode on ChromeOS
Start with the Chromebook off
Press hold esc and F3, then press the power button
Control + D
Turn off OS verification by pressing enter
This will then reformat the drive for you

Format the internal storage – 9MB
Control + D
Connect via ethernet. Do not sign in.
Control + Alt + F2
“chronos” is the password
curl -L -O http://goo.gl/s9ryd; sudo bash s9ryd
9

Install Chrubuntu
Control + D
Connect via ethernet. Do not sign in.
Control + Alt + F2
“chronos” is the password
curl -L -O http://goo.gl/s9ryd; sudo bash s9ryd xubuntu-desktop
Wait for “Get1287, then installation” about 3/4 finished installing
Follow the wizard (enter, enter, enter)
Verify that the GUI comes up (user/user)
sudo cgpt add -i 6 -P 5 -S 1 /dev/sda
sudo reboot
to change back to chromeos – NOT A REQUIRED STEP!!
sudo cgpt add -i 6 -P 0 -S 1 /dev/sda

Install Citrix Receiver
sudo apt-get install libmotif4 nspluginwrapper ffmpeg flashplugin-nonfree cheese nano xosd-bin
open a browser to http://www.citrix.com/downloads and navigate to the linux .deb download file
Open the deb file and install using the software center
Close the browser
Open the browser
Navigate to http://v-xendesktop

Test Citrix
Open Start > Internet > Citrix Receiver
Tools > Settings
Click Allow Audio Input
Apply and close
Start > Internet > Firefox

To enable wireless on an WPA2-AES-Enterprise AP
Add your SSID with Enterprise, PEAP and NO CERTIFICATE AUTHORITY
When it fails to connect, disable wireless
sudo nano /etc/NetworkManager/system-connections/SSID
Find the line system-ca-certs=true and change this to =false
Control + X, Y
Turn on wireless. Profit

Get VPN to work (OPENCONNECT)
sudo apt-get install openconnect network-manager-openconnect
sudo reboot
Add VPN connection information via the Connections tab on the top in the network manager

Create shortcuts for Volume/Brightness – Only one example, you can figure it out from there
nano Desktop/Mon_Brighter.sh
xdotool key XF86MonBrightnessUp
Control + X, Y
chmod +x Mon_Brighter.sh

Others:
Brightness Up xdotool key XF86MonBrightnessUp
Brightness Down xdotool key XF86MonBrightnessDown
Audio Up xdotool key XF86AudioRaiseVolume
Audio Down xdotool key XF86AudioLowerVolume
Audio Mute xdotool key XF86AudioMute

Second monitor support:
sudo add-apt-repository ppa:xubuntu-dev/xfce-4.10
sudo add-apt-repository ppa:xubuntu-dev/xfce-4.12
sudo apt-get update
sudo apt-get upgrade
sudo reboot

xbindkeys – not working
sudo apt-get install xdotool xbindkeys
xbindkeys –defaults > $HOME/.xbindkeysrc

Install OpenManage on XenServer 6.x

I have a pair of R620’s with XenServer 6.1 installed – needed to enable some external monitoring for obvious reasons. Xen looks to be built upon a flavor of CentOS, so the update commands are “yum”.

Install SRVADMIN OMSA
SSH into your xenserver as the root user
wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash
nano /etc/yum.repos.d/CentOS-Base.repo
Find “[base]” and make sure to set it to enabled=1
Save and close nano
yum install srvadmin-all
y

Edit the firewall to allow incoming SNMP/OMSA connections
system-config-securitylevel-tui
Press Tab twice, navigate to “Customize”
Other Ports/Allow Incoming
Add the following after any other text (my system had “ha-cluster:udp”)
,1311:tcp,161:udp
This should now read “ha-cluster:udp,1311:tcp,161:udp”
Select OK and then OK again to close out of the system configuration

Edit SNMP to allow RO access from all
nano /etc/snmp/snmpd.conf
Find “view systemview included snmp”
After this line add a new line containing:
view systemview included .1
Save and close nano

Restart the SNMP daemon
service snmpd restart

Start Dell OMSA
/opt/dell/srvadmin/sbin/srvadmin-services.sh start

Start OMSA after a reboot
nano /etc/rc.local
Add this to the bottom
/opt/dell/srvadmin/sbin/srvadmin-services.sh start
Save and close nano

Verify this is working
https://nameofyourserver:1311
Login with your root credentials

Find Hardware Information Linux

We all know the cat /proc/cpuinfo etc for finding out the CPU information, but I had no idea how to find the model of the motherboard without checking my server spreadsheet list.
Enter DMIdecode.

Find Server Hardware Information
Show your current motherboard
dmidecode --type baseboard

You can also use:
bios
system
baseboard
chassis
processor
memory
cache
connector
slot

Find Networking Hardware
Show your current speed and duplex
dmesg | grep -i duplex

Or use ethtool
ethtool eth1

Playonlinux Office 2010 control.exe

After playing a little bit with WINE I decided to try PlayOnLinux instead – MUCH EASIER!

However, when installing the Office 2010 suite, I breezed through the Outlook setup and ended up picking some wrong information. At that point I’d generally open up the Mail Control Panel on windows and remove the offending profile. Linux is a little more difficult.

~/.PlayOnLinux/wineprefix/Office2010/drive_c/windows/system32 > POL_Wine control.exe

This then opens the control.exe application which allows you to select the mail control panel and then from here remove the profile (or change it).

Proxmox 2.x Installation Woes PE2950

I had a Dell Poweredge 2950 that had been faithfully running proxmox 1.9 (upgraded from 1.7, to 1.8, finally to 1.9) for about a year now. I finally got enough time – and pestered other people about moving their virtual machines to other servers – in order to redo the machine with additional RAM and Prox2.3

So I upgraded the server from 16GB to 32GB – DDR2FB so… – and attempted to boot off the ISO Prox 2.3 image.

As this is a 2950 and not say an R520, the DRAC (not idrac) is pretty much useless – even with the “enterprise” level, it’s bare bones at best. The newer idrac systems (drac6, 7+) are all much better for remote management. As such, I had a monitor and keyboard plugged into this server on my workbench.

Prox displays and says “hit enter to boot”. Hit enter. Screen gets all fuzzy – digitally – and I can’t actually see anything to proceed. Reboot. This time I put in some arguments:
debug vga=normal

Detecting network settings … done
\nInstallation aborted – unable to continue (type EXIT or CTRL-D to reboot)

Reboot
debug vga=normal noacpi
Same issue – unable to continue

Well this is going nowhere fast. Aha! I see the BIOS was 2.2.6 and the newest release is 2.7.0 – this may be the problem. Grab my trusty USB drive and format for DOS/win98 bootable, put the BIOS flashing executable on the drive, boot off the USB and update the BIOS.

Same issue. Argh.

I attempted the debug vga=normal again, only this time instead of rebooting I decided to check out the /var/log area and see if anything was posted.

There was an Xorg log file – it was the only log file in there – and I found some interesting stuff:

XF86OpenConsole setsidfailed operation not permitted
open ACPI failed – file not found

Great. Just on a whim, since I’ve seen the digitally Xorg screens from my past experience with FBSD, I decide to try a different monitor.

Eureka! The problem was my 19″ LCD was being read by Xorg as something not compatible with the currently loaded drivers. I ended up using a spare 15″ LCD and it booted right up.

TL:DR Keep a small LCD around for certain linux experiments.

Nas4Free Samba Home Directories Active Directory

Wow that title is a mouthful. So I installed Nas4free (9.1.0.1-636) on a server with ample storage and wanted to give my end users access to this storage. Why Nas4free? Because it’s freakin easy to administer, fast, and ZFS snapshots are pretty damn nice. And free.

So, nas4free on a server. I also had active directory with about 120 windows users. Hell if I’m going to setup 120 “local” users on nas4free AND have to manage 120 “local” users passwords when they forget. No way. So I could either use LDAP or Active Directory – in my case I chose AD.

Under Access, choose Active Directory (This actually joins the server to your domain, so I assume your network and other settings are already correct)
Domain Controller name: MYDC1
domain name (DNS): MYDOMAIN.LOCAL
Domain name (NetBIOS): MYDOMAIN
Administrator name: ADMINISTRATOR
Administration password: ******

Save. Then verify that it joined your domain by clicking on Diagnostics, then Information. Click on MS Domain.
You should see the line “Join to ‘MYDOMAIN’ is OK” and “checking the trust secret for domain MYDOMAIN via RPC calls succeeded” as well as a list of all of your domain user accounts imported.

But then I needed to change CIFS/SMB to allow my users:
Click on Services then CIFS/SMB
Authentication should already be set to Active Directory. I had issues with protocol, so I changed it to NT1. I also changed the workgroup to be the netBIOS name from above.

Then, on shares, I created a HOmeDirs with the following path
/mnt/zfs/zfsdataset/homedirs/%U
Made it browseable and with Guest Access enabled
Then enabled Shadow Copy
In AUX parameters I entered:
valid users = %U
force user = %U

Then, all you have to do manually is create each directory:
SSH to your nas4free
mkdir /mnt/zfs/zfsdataset/homedirs/USERNAME1 etc

I ended up chmod -R 777 /mnt/zfs/zfsdataset/homedirs