-
-
Save doubtingben/60a228c06a48a5b8601ea5e94e4ab22c to your computer and use it in GitHub Desktop.
Install i3-gaps on Ubuntu 16 | |
apt-get install libxcb1-dev libxcb-keysyms1-dev libpango1.0-dev libxcb-util0-dev libxcb-icccm4-dev libyajl-dev libstartup-notification0-dev libxcb-randr0-dev libev-dev libxcb-cursor-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev autoconf xutils-dev dh-autoreconf | |
git clone --recursive https://github.com/Airblader/xcb-util-xrm.git | |
cd xcb-util-xrm/ | |
./autogen.sh | |
make | |
sudo make install | |
$ cat > /etc/ld.so.conf.d/i3.conf | |
/usr/local/lib/ | |
$ sudo ldconfig | |
$ sudo ldconfig -p | |
git clone https://www.github.com/Airblader/i3 i3-gaps | |
cd i3-gaps | |
autoreconf --force --install | |
rm -Rf build/ | |
mkdir build | |
cd build/ | |
../configure --prefix=/usr --sysconfdir=/etc | |
make | |
sudo make install | |
which i3 | |
ls -l /usr/bin/i3 |
Hi,
to install i3-gaps on Debian (>= jessie) or Ubuntu (>= yakkety), check out this tool:
Cheers!
Nice script, thanks. For anyone else who ends up here, yakkety is Ubuntu 16.10. i3-gaps-deb won't work on 16.04
Hey, I was wondering what do the $'s mean at the beginning of some of the lines. If its in front of a string it means variable, when its at the end of a terminal it means nomal user, but I dont know what it means at the beginning of a command with a space after it?
When I try " $ cat > /etc/ld.so.conf.d/i3.conf " my terminal returns Permission denied, even when I put sudo in-front. This is strange because I thought sudo can do everything, thats why its super.
Im using Elementary OS (based on 16.04.1-Ubuntu) btw
$
refers to the prompt @maxwellgisborne — you can effectively ignore those. In other words:
echo "hi"
# is the same as
$ echo "hi"
@city41 how do I add that variable?
@maxwellgisborne - I was able to get that to run using the following command:
sudo sh -c "cat > /etc/ld.so.conf.d/i3.conf"
The sudo elevation is only for the first command so it's not used to access the directory, hence the permission denied message. Wrapping it in quotes runs it all with the elevation.
Very helpful - thanks. I'd recommend using checkinstall
instead of make install
, to have libxcb_xrm and i3-gaps installed as packages
I couldn't get it to work. I mean this just install i3 on my machine and when I add i3-gaps config to my config file I get an error. Any suggestions?
I am running Ubuntu 18.04.5 LTS
Apparently 16.10 now has xcb-util-xrm as a package, so can just install it with apt.
For me, with 16.04, I got this error when trying to build xcb-util-xrm
To get around this, I did "make clean", then went into the Makefile and added "-fPIC" to the CFLAGS variable.