Tag Info

Hot answers tagged

104

Assuming you can get everything working, and you don't want to do resource intensive tasks such as playing games or doing large compiles, then I think you'll be fine. There's some basic issues you will probably encounter: guest time incorrect guest screen size or color depth incorrect can't access USB devices (printers, phones, etc.) To fix this, you ...


55

I teach a hands-on class on Linux, and unfortunately, by company policy I'm not allowed to reformat the class-provided laptops, so we're going by the VirtualBox guest approach. Ignoring all performance concerns, here are some notes / problems I noticed: 1) Bridged mode and Wireless Some wireless cards apparently have difficulty having "dual identities", ...


37

Edit /etc/systemd/logind.conf and make sure you have, HandleLidSwitch=ignore which will make it ignore the lid being closed. (You may need to also undo the other changes you've made). Full details over at the archlinux Wiki. The man page for logind.conf also has the relevant information, HandlePowerKey=, HandleSuspendKey=, HandleHibernateKey=, ...


32

Take a look on Linux From Scratch, LFS they have a tutorial which teaches you how to build your own Linux System, once you understood that you can select a package manager and a set of packages hence creating your own distro. A thing to make the answer a bit more complete, ArchLinux is a Linux Distribuition which uses almost 100% vanilla packages. This ...


27

Many programs make use of this technique where there is a single executable that changes its behavior based on how it was executed. There's typically a structure inside the program called a case/switch statement that determines the name the executable was called with and then will call the appropriate functionality for that executable name. That name is ...


24

You should be able to reinstall the package with a simple: # pacman -S perl-libwww This will only remove perl-libwww: # pacman -Rdd perl-libwww Please notice the double -d in the command, if you use --nodeps you have to specify that twice too or combine it with a -d like: # pacman -R --nodeps --nodeps perl-libwww # pacman -Rd --nodeps perl-libwww ...


22

From the Pacman Rosetta, since you're looking for the equivalent to apt-file: pkgfile filename pkgfile used to be in the pkgtools package. In recent versions, it's in its own package. To install: pacman -S pkgfile


22

The Yocto Project is a "distribution builder". There is extensive documentation and a graphical builder, called Hob.


19

Don't forget that a VM is an emulation. Your Unix system will never be as powerful in a VM than installed. Archlinux is made to fit your tastes, it is a distribution you can customize to it's maximum. I used to make it run on a VM, though I thought about installing it definitely on my computer. Now my system boots in about 15 seconds, my builds are a looooot ...


17

From man pacman: --noconfirm Bypass any and all “Are you sure?” messages. It’s not a good idea to do this unless you want to run pacman from a script. Note the qualification about using this with care... Arch is a rolling release, which means pacman has to, from time to time, manage some quite complex upgrades. At these times pacman will prompt ...


17

Binaries have been moved to /usr/bin. You need to approach the upgrade in two phases, as per the news article. First remove or update any packages from non-official repos, then update your system in three distinct steps: pacman -Syu --ignore filesystem,bash pacman -S bash pacman -Su If you encounter any difficulties, there is a long thread on the Arch ...


16

Is this not how to set up a swap file? I think you missed a step in between chmod and swapon: mkswap /mnt/sda2/swapfile As for the oxymoromic error... swapon: /mnt/sda2/swapfile: read swap header failed: Success What this literally means is there's a bug in the swapon code, but not necessarily one related to its primary functioning. C library ...


15

There are three ways you could set up the two OSs: Windows host, Linux VM (as you have it). Linux host, Windows VM. Dual boot. If you want to run Windows games I would not recommend option 2. If you regularly want to use a Windows only program (that doesn't run well under Wine) during your Linux session then option 3 won't work well for you. If you use ...


14

Here are some points you could start with: Have a look at the packages installed on your system with pacman -Q and remove the ones you don't need. A good start may be to append the -t switch: Restrict or filter output to packages not required by any currently installed package. Clean the package cache of pacman with pacman -Sc Always use pacman ...


14

Firstly, try running pacman -Syy, then try to install sudo again. Check that the repositories are uncommented in /etc/pacman.conf. Or your mirrorlist might be outdated: Generate a current list of mirrors and copy it to /etc/pacman.d/mirrorlist Quoting from this relevant forum thread: You can: pick another mirror try using an http mirror, not ...


13

What graphical environment are you using in Linux? Most of the modern desktop environments (GNOME, KDE, Unity) are moving towards requiring hardware 3D acceleration support to work properly. Hardware acceleration support for graphics inside VMs is a relatively immature technology at the moment. VirtualBox has experimental support.


13

There is no real need to disable "extra" TTYs as under systemd gettys are generated on demand: see man systemd-getty-generator for details. Note that, by default, this automatic spawning is done for the VTs up to VT6 only (to mimic traditonal Linux systems). As Lennart says in a blog post1: In order to make things more efficient login prompts are now ...


12

The package you are looking for is called wpa_supplicant, it handles logging into protected wireless networks. If you use it from Ubuntu (or other debian based distributions) it's fairly easy to set up and the process is rather simple (check the debian wiki for a few pointers). I don't know much about arch linux but it shouldn't differ too much. If you ...


12

IP Network Troubleshooting There are a few standard things you can look for when you are experiencing network connectivity issues. These are listed here from a top-down, or least fundamental to most fundamental issues. All the example ip commands shown here use a Linux-specific tool called iproute2. Many of the tasks can likely be done with ifconfig and ...


12

If you use this box mainly via SSH, there's a good chance that you're in the butter zone where it really doesn't matter much whether it's a VM or on real hardware. Many of the problems mentioned in other answers come up when you're trying to use the guest OS as a GUI desktop. Linux servers are very happy inside VMs; a huge chunk of the web hosting market is ...


12

The semicolon at the end needs to be quoted or escaped so that it is passed to find instead of being interpreted by the shell. find . -name ic_launcher.png -exec mv '{}' other_name.png ';' or find . -name ic_launcher.png -exec mv '{}' other_name.png \; should do what you're trying to do.


12

Is it possible? Yes. Is it a good idea? That depends. You would only really need to do this if the application only exists as a .deb package. It is much more likely that you can just grab the upstream source and write a simple PKGBUILD to install it with pacman. You should also search the AUR to ensure that someone hasn't done this already.


12

That's not a conflict, its a reflection of the fact that the new version of X (1.16) has hit the repos and, as the news makes clear, glamour-egl is deprecated. Follow pacman's advice and select Y.


11

I found the answer on Arch Linux Forums Since pacman 3.4 you can use # pacman -D to modify only the database. So: # pacman -D --asexplicit <pkgs> will make <pkgs> explicitly installed.


11

You can use perl-file-mimeinfo in the extra repository to manage mimetypes. Example to open all .pdf files in apvlv: /usr/bin/vendor_perl/mimeopen -d $file.pdf and then, at the prompt, enter the application: apvlv.


11

dpkg for Arch exists. You should be able to install .deb packages on arch, but you should also not use it instead of pacman, so just use it for selected few packages. The default command looks like: # dpkg -i package.deb


10

Basically everything will be working fine from internet to installing packages also for initializing hardware, however you will be paying the price for any failure of the windows machine.


10

On my system I can obtain the power drawn from the battery from cat /sys/class/power_supply/BAT0/power_now 9616000 The value seems to be in µW, though. You can convert it with any tool you're comfortable with, e.g. awk: awk '{print $1*10^-6 " W"}' /sys/class/power_supply/BAT0/power_now 9.616 W


9

What this error actually says, is that the version of package-query that's installed depends on a lower version of pacman than the one you're trying to upgrade to. This can be solved by running pacman -Rs yaourt; pacman -Syu; and then rebuilding yaourt and package-query.


9

Pacman's install command really means 'synchronize', so the command to install a new package and to upgrade a single package is the same. pacman -S packagename This will upgrade the package.



Only top voted, non community-wiki answers of a minimum length are eligible